{extend name='admin@public/content'}
{block name="button"}

{/block}
{block name="content"}

{include file='wechat@full/search_inc'}
<form onsubmit="return false;" data-auto="true" method="post">
    <!--{if empty($list)}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <input type="hidden" value="full" name="type">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none="none" data-check-target='.list-check-box' type='checkbox'/>
            </th>
            <th class='text-left'>ID</th>
            <th class='text-left'>真实姓名</th>
            <th class='text-left'>手机号</th>
            <th class='text-left'>工单号</th>
            <th class='text-left'>状态</th>

            <th class='text-left'>提交时间</th>
<!--            <th class='text-left'>审核时间</th>-->
            <th class="text-center">操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'/>
            </td>
            <td class='text-left nowrap'>
                {$vo.id}
            </td>
            <td class='text-left nowrap'>
                {$vo.nickname|default='未设置昵称'}
            </td>
            <td class='text-left nowrap'>
                {$vo.phone|default='未绑定账号'}
            </td>

            <td class='text-left nowrap'>
                {$vo.worker_id|default='未填写工单号'}
        	</td>
            <td class='text-left nowrap'>
                {if condition="$vo.status eq 1"}<span class="color-red">待审核</span>{elseif condition="$vo.status gt 1"}<span class="color-desc">已处理</span>{/if}
            </td>
            <td class='text-left nowrap'>{$vo.addtime|format_time}</td>
<!--            <td class='text-left nowrap'> {$vo.updatetime|default='&#45;&#45;'}</td>-->

            <td class="text-center nowrap">
                {if condition="$vo.status eq 1"}
                <a data-modal="{:url('order')}?member_id={$vo.id}&type=full" data-title="工单号"  >通过</a>
                <!--                 <a data-update="{$vo.id}"  data-field='status' data-value='3' data-action="{:url('backadd')}">拒绝</a>-->
                <!--                 <a data-update="{$vo.id}"  data-field='status' data-value='3' data-action="{:url('backadd')}">拒绝</a>-->
                {else/}
                <span>
                       {if condition="$vo.status eq 2"}已通过{elseif condition="$vo.status eq 3"}已拒绝{/if}
                </span>

                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/if}-->
</form>
{/block}

{block name="script"}
<!--表单初始化-->
<script>
    window.laydate.render({range: true, elem: '#create_at'});
    window.form.render();
</script>

{/block}
